<?php

/**
 * Created by PhpStorm.
 * User: LAI
 * Date: 16.7.14
 * Time: 18.33
 */
?>
  <head>
    <meta content="text/html" charset="utf-8">
  </head>
  <body>
<?php

$url = "localhost";
$name = "sasha";
$pass = "sasha";

$linkId = mysql_connect($url, $name, $pass);

mysql_select_db("test1", $linkId);

$resultSet = mysql_query("select * from cars");

while ($row = mysql_fetch_array($resultSet)) {

  echo "Mark : " . $row['car'] . " <br>";
}

?>

  </body>